//
//  baseViewController.m
//  pacc_HD
//
//  Created by 测试 on 2018/7/24.
//  Copyright © 2018年 测试. All rights reserved.
//

#import "baseViewController.h"

@interface baseViewController ()

@end

@implementation baseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
-(void)viewWillAppear:(BOOL)animated{
    my_AppDelegate.isLandscape = NO;
    NSNumber *orientationUnknown = [NSNumber numberWithInt:UIInterfaceOrientationPortraitUpsideDown];
    NSLog(@"orientationUnknown==%@",orientationUnknown);
    [[UIDevice currentDevice] setValue:orientationUnknown forKey:@"orientation"];
    
    NSNumber *orientationTarget = [NSNumber numberWithInt:UIInterfaceOrientationPortrait];
    NSLog(@"orientationTarget==%@",orientationTarget);
    [[UIDevice currentDevice] setValue:orientationTarget forKey:@"orientation"];
    [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
    
}

//是否可以旋转
-(BOOL)shouldAutorotate
{
    return NO;
}

//设置是否隐藏
- (BOOL)prefersStatusBarHidden {
    return NO;
}

-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
    return UIInterfaceOrientationPortrait;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
